package cn.edu.hstc.wm.bean;

import java.io.Serializable;

@SuppressWarnings("serial")
public class Good implements Serializable {
	private Integer id;// 商品id
	private String name;// 商品名称
	private float price;// 商品价格
	private String imageName;// 商品图片名称
	private Store store;// 商品对应的店铺，表示与店铺的多对一关系

	/**
	 * 被选中的份数
	 */
	private int select_count = 0;

	public void setSelectCount(int i) {
		select_count = i;
	}

	public int getSelectCount() {
		return select_count;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public Store getStore() {
		return store;
	}

	public void setStore(Store store) {
		this.store = store;
	}

	public String getImageName() {
		return imageName;
	}

	public void setImageName(String imageName) {
		this.imageName = imageName;
	}

	@Override
	public String toString() {
		return "Goods [id=" + id + ", name=" + name + ", price=" + price
				+ ", imageName=" + imageName + ", store=" + store
				+ ", select_count=" + select_count + "]";
	}

}
